package com.unhz.generator.dao;

import com.unhz.generator.pojo.User;
import com.unhz.generator.vo.UserVo;
import org.apache.ibatis.annotations.Param;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.stereotype.Repository;
import java.util.List;
import java.util.Map;

/**
 * @Author: 沈佳庆
 * @Description: 用户信息
 * @Date: Created in 下午 6:53 2018/1/23 0023
 * @Modified By:
 */
@Repository
public interface UserMapper extends BaseMapper<User> {





    User findUserPhone(@Param("userPhone") String userPhone);
    int getTotalRecordsByKeywords(@Param("keywords") String keywords);

    int getTotalRecordsByKeywordsAndAdminId(@Param("keywords") String keywords,@Param("adminId") Integer adminId);

    List<UserVo> findUserMap(Map<String, Object> map);

    List<UserVo> findUserMapByAdminId(Map<String, Object> map);

    void deleteById(@Param("userId") Integer userId);

    UserVo findUserById(@Param("userId") Integer userId);

    List<UserVo> selectUserImportExport(@Param("keywords") String keywords);

    List<User> selectAllUser();

    User findLongUser(String userPhone, String userPassword );

    UserVo selectByUserName(@Param("keywords") String keywords);

    User selectById(@Param("userId")Integer userId);

    int updateLoginPassword(@Param("id")Integer id,@Param("userPassword")String userPassword);

    void keyPass(User user);

}